package com.sk.cardeal.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by sk on 2018/1/11.
 */

public class Brand implements Parcelable {

    /**
     * id : 3
     * code :
     * pid :
     * initials : A
     * text : 奥迪
     * brandCode : null
     * brandName : null
     * manufacturerCode : null
     * manufacturerName : null
     * seriesCode : null
     * seriesName : null
     * sorts : 1
     * isLocal : null
     * isHot : 1
     * deep : 1
     * icon : 402880eb5df304fb015df31ac3650003
     * isdel : 0
     * createTime : 2018-01-10 10:18:26
     * updateTime : 2018-01-10 10:18:54
     * state : 1
     * relateDM : null
     */

    private String id;
    private String code;
    private String pid;
    private String initials;
    private String text;
    private String brandCode;
    private String brandName;
    private String manufacturerCode;
    private String manufacturerName;
    private String seriesCode;
    private String seriesName;
    private int sorts;
    private String isLocal;
    private int isHot;
    private int deep;
    private String icon;
    private int isdel;
    private String createTime;
    private String updateTime;
    private int state;
    private String relateDM;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getInitials() {
        return initials;
    }

    public void setInitials(String initials) {
        this.initials = initials;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getBrandCode() {
        return brandCode;
    }

    public void setBrandCode(String brandCode) {
        this.brandCode = brandCode;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getManufacturerCode() {
        return manufacturerCode;
    }

    public void setManufacturerCode(String manufacturerCode) {
        this.manufacturerCode = manufacturerCode;
    }

    public String getManufacturerName() {
        return manufacturerName;
    }

    public void setManufacturerName(String manufacturerName) {
        this.manufacturerName = manufacturerName;
    }

    public String getSeriesCode() {
        return seriesCode;
    }

    public void setSeriesCode(String seriesCode) {
        this.seriesCode = seriesCode;
    }

    public String getSeriesName() {
        return seriesName;
    }

    public void setSeriesName(String seriesName) {
        this.seriesName = seriesName;
    }

    public int getSorts() {
        return sorts;
    }

    public void setSorts(int sorts) {
        this.sorts = sorts;
    }

    public String getIsLocal() {
        return isLocal;
    }

    public void setIsLocal(String isLocal) {
        this.isLocal = isLocal;
    }

    public int getIsHot() {
        return isHot;
    }

    public void setIsHot(int isHot) {
        this.isHot = isHot;
    }

    public int getDeep() {
        return deep;
    }

    public void setDeep(int deep) {
        this.deep = deep;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public int getIsdel() {
        return isdel;
    }

    public void setIsdel(int isdel) {
        this.isdel = isdel;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getRelateDM() {
        return relateDM;
    }

    public void setRelateDM(String relateDM) {
        this.relateDM = relateDM;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.code);
        dest.writeString(this.pid);
        dest.writeString(this.initials);
        dest.writeString(this.text);
        dest.writeString(this.brandCode);
        dest.writeString(this.brandName);
        dest.writeString(this.manufacturerCode);
        dest.writeString(this.manufacturerName);
        dest.writeString(this.seriesCode);
        dest.writeString(this.seriesName);
        dest.writeInt(this.sorts);
        dest.writeString(this.isLocal);
        dest.writeInt(this.isHot);
        dest.writeInt(this.deep);
        dest.writeString(this.icon);
        dest.writeInt(this.isdel);
        dest.writeString(this.createTime);
        dest.writeString(this.updateTime);
        dest.writeInt(this.state);
        dest.writeString(this.relateDM);
    }

    public Brand() {
    }

    protected Brand(Parcel in) {
        this.id = in.readString();
        this.code = in.readString();
        this.pid = in.readString();
        this.initials = in.readString();
        this.text = in.readString();
        this.brandCode = in.readString();
        this.brandName = in.readString();
        this.manufacturerCode = in.readString();
        this.manufacturerName = in.readString();
        this.seriesCode = in.readString();
        this.seriesName = in.readString();
        this.sorts = in.readInt();
        this.isLocal = in.readString();
        this.isHot = in.readInt();
        this.deep = in.readInt();
        this.icon = in.readString();
        this.isdel = in.readInt();
        this.createTime = in.readString();
        this.updateTime = in.readString();
        this.state = in.readInt();
        this.relateDM = in.readString();
    }

    public static final Parcelable.Creator<Brand> CREATOR = new Parcelable.Creator<Brand>() {
        @Override
        public Brand createFromParcel(Parcel source) {
            return new Brand(source);
        }

        @Override
        public Brand[] newArray(int size) {
            return new Brand[size];
        }
    };
}
